<?php
class MarketingCommand extends BaseCommand
{
    public function actionCampaign($id, $list, $test = 1)
    {
        $start = time();
        MarketingUtility::runCampaign($id, $list, $test);
        $duration = time() - $start;
        echo "DONE: $duration (seconds)\n";
    }

    public function actionSplitEmails($campaignId, $numLinePerFile = 2000)
    {
        MarketingUtility::splitEmails($campaignId, $numLinePerFile);
        echo "DONE\n";
    }
}
